package com.wugui.datax.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.wugui.datax.admin.entity.JobUser;

/**
 * @author xuxueli 2019-05-04 16:44:59
 */
@Mapper
@Repository
public interface JobUserMapper {

	List<JobUser> pageList(@Param("offset") int offset, @Param("pagesize") int pagesize,
			@Param("username") String username);

	List<JobUser> findAll(@Param("username") String username);

	int pageListCount(@Param("offset") int offset, @Param("pagesize") int pagesize, @Param("username") String username);

	JobUser loadByUserName(@Param("username") String username);

	JobUser getUserById(@Param("id") int id);

	List<JobUser> getUsersByIds(@Param("ids") String[] ids);

	int save(JobUser jobUser);

	int update(JobUser jobUser);

	int delete(@Param("id") int id);

}
